Carbon


StdRRect

Header: Quickdraw.h Carbon status: Supported

QuickDraw’s standard low-level function for drawing a rounded rectangle.

void StdRRect (
    GrafVerb verb, 
    const Rect *r, 
    SInt16 ovalWidth, 
    SInt16 ovalHeight
);
Parameter descriptions
verb

The action to perform. See “Verb Constants”

r

The rectangle to draw.

ovalWidth

The width diameter for the corner oval.

ovalHeight

The height diameter for the corner oval.

DISCUSSION

The StdRRect function draws the rounded rectangle specified in the r parameter according to the action specified in the verb parameter. The ovalWidth and ovalHeight parameters specify the diameters of curvature for the corners.

You should only call this low-level function from your customized QuickDraw functions.

SPECIAL CONSIDERATIONS

The StdRRect function may move or purge memory blocks in the application heap; do not call this function at interrupt time.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)